﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam4.DAO;
using MockPrjTeam4.Entity;

namespace MockPrjTeam4.Biz
{
    public class TypeOfBusinessBiz
    {
        public static IList<TypeOfBusiness> GetListTypeOfBusiness()
        {
            return TypeOfBusinessDAO.GetListTypeOfBusiness();
        }

        public static TypeOfBusiness GetTypeOfBusinessById(int id)
        {
            return TypeOfBusinessDAO.GetTypeOfBusinessById(id);
        }

        public static IList<TypeOfBusiness> Search(string firstName, string surname)
        {
            return TypeOfBusinessDAO.Search(firstName, surname);
        }
    }
}